package liaotian;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerSocketTest {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(10001);
        Socket socket = serverSocket.accept(); //阻塞,等待
        new Thread(new ReceiveThread(socket)).start();
        new Thread(new SendThread(socket)).start();


    }
}
